<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace pam\Factory;

/**
 * Description of HealthPolicyIndicatorsDataAccessFactory
 *
 * @author robert.bwana
 */
use Zend\ServiceManager\FactoryInterface;
use pam\Mapper\HealthPolicyIndicatorsDataAccess as hpida;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Stdlib\Hydrator\ClassMethods;
use pam\Model\Indicator;

class HealthPolicyIndicatorsDataAccessFactory implements FactoryInterface{
    public function createService(ServiceLocatorInterface $serviceLocator) {
        return new hpida($serviceLocator->get('Zend\Db\Adapter\Adapter'),
                new ClassMethods(false),
                new Indicator()
                );
    }
}
